package com.ft.adbix.utils.data.synchronize.sample.uploader;

import com.ft.adbix.utils.data.synchronize.entity.OperationData;
import com.ft.adbix.utils.data.synchronize.uploader.OperationDataUploader;

import java.util.List;

/**
 * @author ciba
 * @description Crash信息上传样例
 * @date 2018/12/4
 */
public class SampleOperationDataUploader implements OperationDataUploader {

    @Override
    public void uploadOperationDataData(List<OperationData> motionEventList) {
        //移除操作上报逻辑 2021.04.16  by松子
//        if (motionEventList == null || motionEventList.isEmpty()) {
//            return;
//        }
//        AsyncHttpClient httpClient = SampleLoaderUploaderManager.getInstance().getHttpClient();
//        String motionEventUrl = SampleUrlManager.getMotionEventUrl();
//        if (httpClient == null || TextUtils.isEmpty(motionEventUrl)) {
//            motionEventList.clear();
//            motionEventList = null;
//            return;
//        }
//
//        Map<String, String> params = JsonUtil.operationData2Json(motionEventList);
//        if (params == null || params.size() <= 0) {
//            motionEventList.clear();
//            motionEventList = null;
//            return;
//        }
//
//        httpClient.post(motionEventUrl, params, null);
    }
}
